.class public Lcom/brixd/niceapp/model/AppStoreModel;
.super Ljava/lang/Object;
.source "AppStoreModel.java"

# interfaces
.implements Ljava/io/Serializable;


# static fields
.field private static final serialVersionUID:J = -0xb41e05c15fb4db0L


# instance fields
.field public lang:Ljava/lang/String;

.field public name:Ljava/lang/String;

.field public packageName:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 7
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static parseAppStoreModel(Lorg/json/JSONObject;)Lcom/brixd/niceapp/model/AppStoreModel;
    .registers 3
    .param p0, "jo"    # Lorg/json/JSONObject;

    .prologue
    .line 17
    new-instance v0, Lcom/brixd/niceapp/model/AppStoreModel;

    invoke-direct {v0}, Lcom/brixd/niceapp/model/AppStoreModel;-><init>()V

    .line 18
    .local v0, "appStoreModel":Lcom/brixd/niceapp/model/AppStoreModel;
    const-string v1, "lang"

    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/brixd/niceapp/model/AppStoreModel;->lang:Ljava/lang/String;

    .line 19
    const-string v1, "name"

    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/brixd/niceapp/model/AppStoreModel;->name:Ljava/lang/String;

    .line 20
    const-string v1, "package_name"

    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/brixd/niceapp/model/AppStoreModel;->packageName:Ljava/lang/String;

    .line 22
    return-object v0
.end method
